﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Internal.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    导入物料
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ScriptStyleContent" runat="server">
    <script type="text/javascript">
        function showMessage() {
            alert("物料添加成功!");
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <% using (Html.BeginForm("ImportMaterialList", "MaterialManagement", FormMethod.Post, new { enctype = "multipart/form-data" }))
       { %>
    <p>
        <input type="file" name="upload" value="选择文件" />
        <span style="color: Red; margin-left: 5px;">上传文件仅限于Excel文件</span> <a href="../../Upload/template.xls">点击下载模板</a>
    </p>
    <p>
        <% if (ViewData["warning"] != null)
           { %>
        <%= ViewData["warning"].ToString() %>
        <%} %>
        <% else if (ViewData["successCount"] != null)
           { %>
        导入成功, 一共导入物料定义<%= ViewData["successCount"].ToString()%>个
        <%} %>
    </p>
    <p>
        <input type="submit" value="添加" />
    </p>
    <%} %>
</asp:Content>
